import styled from 'styled-components'

export const Container = styled.div`
    display: flex;
    justify-content: space-between;
    .left{
        flex: 2;
        margin-right: 24px;
    }
    .right{
        flex: 1;
        .document-item{
            margin-bottom: 8px;
            margin-right: 16px;
            &:hover{
                background: #e6f7ff;
                border-color: #91d5ff;
                a{
                    color: #1890ff;
                }
            }
            .delete-document{
                cursor: pointer;
                margin-left: 8px;
                transition: all 0.2s linear;
                color: rgba(0, 0, 0, .45);
                &:hover{
                    transition: all 0.2s linear;
                    color: #ff7875;
                    transform: scale(1.3);
                }
            }
        }
    }
`

export const ProjectItem = styled.div`
    height: 100px;
    .top{
        display: flex;
        align-items: center;
        padding-bottom: 8px;
        &:hover{
            cursor: pointer;
        }
        .avatar{
            width: 28px;
            height: 28px;
            border-radius: 50%;
            font-weight: bold;
            font-size: 14px;
            line-height: 28px;
            color: white;
        }
        span{
            flex: 1;
            width: 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            color: rgba(0,0,0,.85);
            font-size: 14px;
            margin-left: 12px;
            font-weight: bold;
            text-align: left;
        }
    }
    .desc{
        &:hover{
            cursor: pointer;
        }
        text-align: left;
        line-height: 22px;
        height: 44px;
        overflow: hidden;
    }
    .footer{
        text-align: right;
        margin: 8px 0;
        span{
            font-size: 14px;
            margin-right: 16px;
        }
        .author{
            display: flex;
            align-items: center;
            span{
                margin-right: 0;
            }
        }
    }
`


export const NearPlanItem = styled.div`
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    .plan-content{
        flex: 1;
        margin-right: 12px;
    }
`